package com.yzf.wisecoder.wisecodercommon.vo.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author jianghuiyong
 * @Description 数据库请求对象
 * @date 2020/5/13 15:54
 */
@Data
@Accessors(chain = true)
public class ViewDbReq {

    private Long dbId;
    /**
     * 数据源名称
     */
    @ApiModelProperty(value = "数据源名称", required = true)
    private String dbName;
    /**
     * 数据源URL
     */
    @ApiModelProperty(value = "数据源URL", required = true)
    @NotBlank(message = "数据源URL不能为空")
    private String dbUrl;
    /**
     * 数据源用户
     */
    @ApiModelProperty(value = "数据源用户")
    private String dbUsername;
    /**
     * 数据源密码
     */
    @ApiModelProperty(value = "数据源用户")
    private String dbPassword;
    /**
     * 数据源类型
     */
    @ApiModelProperty(value = "数据源类型")
    private String dbType;
    /**
     * 项目ID
     */
    @ApiModelProperty(value = "项目ID", required = true)
    @NotNull(message = "项目ID不能为空")
    private Long projectId;

}
